#include "SGNodeLookAt.h"
#include "CRaytracer.h"

SGNodeLookAt::SGNodeLookAt()
:m_eye(0, CVector3f()), m_at(0, CVector3f()), m_up(0, CVector3f())
{}

//SGNodeLookAt::~SGNodeLookAt(){}

void SGNodeLookAt::doUpdate()
{
	CVector3f e = m_eye;
	RAYTRACER.setViewer(e, m_at, m_up);
}

void SGNodeLookAt::dirty()
{
	m_eye.onChange();
	m_at.onChange();
	m_up.onChange();
}